import { Component } from '@angular/core';

@Component({
  selector: 'app-tag-hot-tags-demo',
  templateUrl: './tag-hot-tags-demo.component.html',
  styleUrl: './tag-hot-tags-demo.component.less',
})
export class TagHotTagsDemoComponent {
  tags = ['Movie', 'Books', 'Music', 'Sports'];
  checkedTags = new Set();

  changeCheck(tag: string, checked: boolean) {
    if (checked) {
      this.checkedTags.add(tag);
    } else {
      this.checkedTags.delete(tag);
    }
  }
}
